package com.xbai.item.feign;

import com.xbai.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author jxbai
 * @desc
 * @date 2021/2/3 0003
 */
@FeignClient(name="item")
@RequestMapping("/page")
public interface PageFeign {

    /**
     * 根据SpuID生成静态页
     * @param id SpuID
     * @return {@link Result}
     */
    @RequestMapping("/createHtml/{id}")
    Result createHtml(@PathVariable("id") Long id);
}
